package com.iocup.keybastion.configuration;


import com.iocup.keybastion.core.HttpActionAdapter;
import com.iocup.keybastion.core.impl.DefaultHttpActionAdapter;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;

/**
 * 认证配置
 *
 * @author xyjxust
 * @create 2022/2/23 14:25
 **/
@Getter
@Slf4j
public class HttpConfigurator {


    /**
     * http异常处理
     */
    private HttpActionAdapter httpActionAdapter = new DefaultHttpActionAdapter();




    /**
     * 添加http异常处理
     *
     * @param httpActionAdapter
     * @return
     */
    public HttpConfigurator httpActionAdapter(HttpActionAdapter httpActionAdapter) {
        this.httpActionAdapter = httpActionAdapter;
        return this;
    }
}
